package com.key.sys.apps.service.serviceImp;

import com.key.base.service.serviceImp.BaseServiceImp;
import com.key.sys.apps.dao.IAppDao;
import com.key.sys.apps.model.App;
import com.key.sys.apps.service.IAppService;

public class AppServiceImp extends BaseServiceImp implements IAppService {
	IAppDao appDao;

	public IAppDao getAppDao() {
		return appDao;
	}

	public void setAppDao(IAppDao appDao) {
		this.appDao = appDao;
	}

	/**
	 * model
	 * 
	 * @param app
	 */
	@Override
	public void add(App app) throws Exception {
		try {
			appDao.add(app);
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

	/**
	 * model
	 * 
	 * @param app
	 */
	@Override
	public void update(App app) throws Exception {
		try {
			appDao.update(app);
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
}
